//
//  Extension+UIImageView.swift
//  CZWeibo
//
//  Created by 左凯旭 on 16/8/9.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

extension UIImageView{
    
    convenience init(imageName: String){
        self.init(image: UIImage(named: imageName))
    }
    
    
     // 对SDWebImage 封装一次
    func cz_setImageWithString(imageName:String?,playholderImageName:String){
        
        self.sd_setImageWithURL(NSURL(string: imageName ?? ""), placeholderImage: UIImage(named: playholderImageName))
    }
    
}
